<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <title></title>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<table class="layui-table" lay-even lay-skin="nob">
    <thead>
    	<tr>
        <th><?=L('tpl_12').$path?></th>
        </tr>    	
    </thead>
    <tbody>
	<tr><td><img align="absmiddle" src="<?=Web_Path?>packs/admin/images/ext/dir.gif">&nbsp;<a href="<?=$uppage?>"><?=L('tpl_08')?></a></td></tr>
        <?php 
        for ($i=0; $i<count($dirs); $i++) {
              echo '<tr><td><img align="absmiddle" src="'.$dirs[$i]['icon'].'">&nbsp;<a href="'.$dirs[$i]['link'].'/">'.$dirs[$i]['name'].'</a></td></tr>';
        } 
        for ($j=0; $j<count($show); $j++) {
			  $pic = '';
			  if($show[$j]['ext']=='pic'){
				$pic='<div style="position: absolute; bottom: 30px; left: 32px; width: 100px; height: 100px; display: none; background-color: #fff;z-index: 2;padding: 5px;"><img src=\''.$show[$j]['link'].'\'></div>';
			  }
              echo '<tr><td style="position:relative;">'.$pic.'<img align="absmiddle" src="'.$show[$j]['icon'].'">&nbsp;<a class="'.$show[$j]['ext'].'" href="javascript:;" onclick="parent.get_ok(\'ok\',\''.$show[$j]['link'].'\')">'.$show[$j]['name'].'</a></td></tr>';
        } 
        ?>
    </tbody>
</table>
<script>
$(document).ready(function(){
	$('.pic').hover( function(){ 
		$(this).siblings('div').show(); 
	}, function(){  
		$(this).siblings('div').hide(); 
	});
});
</script>
</body>
</html>
